#ifndef BTFORM_H
#define BTFORM_H
#include<QString>
#include <QWidget>
#include<QPropertyAnimation>
#include<QLabel>

namespace Ui {
class btForm;
}

class btForm : public QWidget
{
    Q_OBJECT

public:
    explicit btForm(QWidget *parent = nullptr);
    ~btForm();
     int getid();
     void seticon(QString btIcon,QString content,int mid);
     virtual void mousePressEvent(QMouseEvent *event) override;
     //设置动画
     void  SetQPAnimation(int t,QPropertyAnimation* pat,QRect rect,QLabel*label);
     void showanimal();
     void hideanimal();
     void clearbg();
     void showAnimal(bool isShow);
 signals:
     void btsignal(int id);
private:
    Ui::btForm *ui;
    int id;
    QPropertyAnimation* animationline1;
    QPropertyAnimation* animationline2;
    QPropertyAnimation* animationline3;
    QPropertyAnimation* animationline4;
};

#endif // BTFORM_H
